package com.hcb.micro.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hcb.micro.dao.interfaceClass.MallMapper;
import com.hcb.micro.dto.Mall;
import com.hcb.micro.service.IMallService;

@Service("MallService")
public class MallServiceImpl implements IMallService {

	@Autowired
	MallMapper mallMapper;
	
	@Override
	public int deleteByPrimaryKey(Integer id) {
		return mallMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(Mall record) {
		return mallMapper.insert(record);
	}

	@Override
	public int insertSelective(Mall record) {
		return mallMapper.insertSelective(record);
	}

	@Override
	public Mall selectByPrimaryKey(Integer id) {
		return mallMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(Mall record) {
		return mallMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(Mall record) {
		return mallMapper.updateByPrimaryKey(record);
	}

	@Override
	public Mall selectByMallUuid(String mallUuid) {
		return mallMapper.selectByMallUuid(mallUuid);
	}
	
	@Override
	public List<Mall> selectByPara(Map<String,Object> para) {
		return mallMapper.selectByPara(para);
	}
}
